|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEMTool.EMDtd
public class EMDtd
Much of the information use to develop this class came from the following two web sites http://java.sun.com/developer/technicalArticles/xml/jaxb/ https://jaxb.dev.java.net/
The xjc tool was used to creat the request and response classes from the DTD files. The four DTD files were created from the DTD definitions in the 7.0(1) Cisco Unified Communication Manager XML Developer Guide
The commands used to create the classes are as follows. the -p
parameters put the classes in unique packages.
This is required to avoid naming conflicts between the different classes.
xjc -dtd loginrequest.dtd -p loginrequest
xjc -dtd loginresponse.dtd -p loginresponse
xjc -dtd queryrequest.dtd -p queryrequest
xjc -dtd queryresponse.dtd -p queryresponse
Field Summary | |
---|---|
(package private) java.lang.String |
res
|
(package private) java.lang.String |
serverIP
|
(package private) java.lang.String |
serverpassword
|
(package private) java.lang.String |
serverusername
|
Fields inherited from interface EMTool.EMInterface |
---|
DEVICEDOESNOTEXIST, FAILURE, NODEVICESFOUND, NOUSERSFOUND, SUCCESS, USERDOESNOTEXIST |
Constructor Summary | |
---|---|
EMDtd()
|
Method Summary | |
---|---|
void |
init(java.lang.String serverIP,
java.lang.String serverUser,
java.lang.String serverPassword)
|
java.lang.String |
login(java.lang.String deviceName,
java.lang.String username,
java.lang.String deviceProfile,
java.lang.String duration)
Login the user into the device with the specificed profile |
java.lang.String |
logout(java.lang.String deviceName)
Logout any user that is currently logged into the device |
java.lang.String |
queryDevice(java.lang.String username)
Get the device name if any of the device the user is currently logged in to |
java.lang.String |
queryUser(java.lang.String deviceName)
Get the username if any of the user currently logged in to the specified device |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String serverIP
java.lang.String serverusername
java.lang.String serverpassword
java.lang.String res
Constructor Detail |
---|
public EMDtd()
Method Detail |
---|
public java.lang.String login(java.lang.String deviceName, java.lang.String username, java.lang.String deviceProfile, java.lang.String duration)
EMInterface
login
in interface EMInterface
deviceName
- Device name of device to login tousername
- User to log indeviceProfile
- Device profile to useduration
- null for infinite or number of minutes to remain logged in
public java.lang.String logout(java.lang.String deviceName)
EMInterface
logout
in interface EMInterface
deviceName
- Device name of device to logout of
public java.lang.String queryUser(java.lang.String deviceName)
EMInterface
queryUser
in interface EMInterface
public java.lang.String queryDevice(java.lang.String username)
EMInterface
queryDevice
in interface EMInterface
public void init(java.lang.String serverIP, java.lang.String serverUser, java.lang.String serverPassword)
init
in interface EMInterface
serverIP
- This is the IP address of the server running the EM ServicesserverUser
- Username of a user with that can execute EM command via the EMServices interface
This user must either be the user assigned to the device on which the operation is performed, or a user
with the "Standard EM Autheticatio Proxy Rights" role. This parameter is used as the AppID in the AppInfo objectserverPassword
- Password for the server USer. This parameter is used as the AppCertificate in the AppInfo object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |